<?php

use Illuminate\Database\Seeder;

class home_usersTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {   

        for ($i = 0; $i <10; $i++) {
            
            DB::table('home_users')->insert([
                'nickname' => str_random(3),
                'username' => str_random(3),
                'password' => bcrypt('123'),
                'sex' => '1',
                'address' => "兄弟连3楼{$i}",
                'code' => 510000,
                'user_level_id' => 1,
                'phone' => 12345678901,
                'email' => str_random(3).'@qq.com',
                'sign_time' => date('Y-m-d H:i:s'),
                'user_score' => 100,
                'state' => 1,
                'created_at' => date('Y-m-d H:i:s'),
                 'updated_at' => date('Y-m-d H:i:s')
            ]);
        }
    }
}
